package org.wjy.post.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**     
 * 类名称：User   
 * 类描述：用户信息实体
 * 创建人：anan   
 * 创建时间：2012-12-21 下午10:55:19   
 * 修改人：anan  
 * 修改时间：2012-12-21 下午10:55:19   
 * 修改备注：   
 * @version        
 * */
@Entity
@Table(name = "user")
public class User {
	/**
	 * 用户id
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	/**
	 * 用户编号
	 */
	@Column(name = "customerNo", length = 255)
	private String customerNo;
	
	/**
	 * 用户名字
	 */
	@Column(name = "customerName", length = 255)
	private String customerName;
	
	/**
	 * 用户登录密码
	 */
	@Column(name = "telephone", length = 255)
	private String telephone;
	
	@Column(name = "address", length = 255)
	private String address;

	
	

	public User(int id, String customerName, String telephone) {
		this.id = id;
		this.customerName = customerName;
		this.telephone = telephone;
	}

	public User(String customerName, String telephone) {
		this.customerName = customerName;
		this.telephone = telephone;
	}

	public User(int id) {
		this.id = id;
	}

	public User() {
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	public String getCustomerNo() {
		return this.customerNo;
	}

	public void setCustomerNo(String customerNo) {
		this.customerNo = customerNo;
	}
	
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String toString(){
		return "用户电话号码为："+this.telephone+"名字为："+this.customerName;
	}
	

}
